package com.smart.four.ioc.daemon;

/**
 * 导演
 *
 * @author junrui.wang
 * @create 2018/4/18
 */
public class Director {
    public void direct(){
        GeLi geLi = new LiuDeHua();
        MoAttack moAttack = new MoAttack();
        moAttack.setGeLi(geLi);
        moAttack.cityGateAsk();

        //设置了spring bean后
        moAttack.cityGateAsk();
    }
}
